package com.yinhai.message.implement.email.sender.vo;

import java.util.ArrayList;

import com.yinhai.message.implement.email.common.Attachment;
import com.yinhai.message.implement.email.common.Image;
import com.yinhai.message.implement.email.common.Recipient;

/**
*
*@author lanyc
*@version created: 2017年3月29日下午4:16:01
*/
public class EmailMessage {
	private String mgid;
	private String sysId;//发件人系统id
    private String fromName;//发件人的名字
    private String fromAddress;//发件人邮件地址

    private ArrayList<Recipient> recipients;//收件人名字和邮件列表
    private String subject;//邮件主题
    private String text;//邮件文本内容
    private ArrayList<Attachment> attachments; //附件列表
    private ArrayList<Image> images;//内嵌图片

    private boolean isSSL;  //是否支持SSL链接
    private boolean isTLS;  //是否支持TLS链接
    
	public EmailMessage() {
		super();
	}

	public EmailMessage(String mgid, String sysId, String fromName, String fromAddress, ArrayList<Recipient> recipients,
			String subject, String text, ArrayList<Attachment> attachments, ArrayList<Image> images, boolean isSSL,
			boolean isTLS) {
		super();
		this.mgid = mgid;
		this.sysId = sysId;
		this.fromName = fromName;
		this.fromAddress = fromAddress;
		this.recipients = recipients;
		this.subject = subject;
		this.text = text;
		this.attachments = attachments;
		this.images = images;
		this.isSSL = isSSL;
		this.isTLS = isTLS;
	}

	public String getMgid() {
		return mgid;
	}

	public void setMgid(String mgid) {
		this.mgid = mgid;
	}

	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public String getFromAddress() {
        return fromAddress;
    }

    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    public ArrayList<Recipient> getRecipients() {
        return recipients;
    }

    public void setRecipients(ArrayList<Recipient> recipients) {
        this.recipients = recipients;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public ArrayList<Attachment> getAttachments() {
        return attachments;
    }

    public void setAttachments(ArrayList<Attachment> attachments) {
        this.attachments = attachments;
    }

    public ArrayList<Image> getImages() {
        return images;
    }

    public void setImages(ArrayList<Image> images) {
        this.images = images;
    }

    public boolean isSSL() {
        return isSSL;
    }

    public void setSSL(boolean SSL) {
        isSSL = SSL;
    }

    public boolean isTLS() {
        return isTLS;
    }

    public void setTLS(boolean TLS) {
        isTLS = TLS;
    }
}
